package com.passer.springcloud.service;

import com.passer.springcloud.dao.PaymentDao;
import com.passer.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * description: paymentServiceImp
 * date: 2022/2/22 6:58
 * author: MSXQ
 * version: 1.0
 */
@Service
public class PaymentServiceImp implements PaymentService{
    @Resource
    private PaymentDao paymentDao;

    public int create (Payment payment){
        return paymentDao.create(payment);
    };

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
